package com.shenyong.entity;

import java.util.List;

/**
 * @author
 * @site
 * @company
 * @create
 */
public class LoginUsers {
    /**
     * 验证码
     */
    private String phoneCode;
    /**
     * 用户
     */
    private Users user;

    /**
     * 用户token验证(header的键名)
     */
    private String token;
    /**
     * 用户所拥有的权限
     */
    // private Map<String,Object> prems;
    private List<String> prems;

    public LoginUsers(String phoneCode, Users user, String token, List<String> prems) {
        this.phoneCode = phoneCode;
        this.user = user;
        this.token = token;
        this.prems = prems;
    }
    public LoginUsers(){}
    public String getPhoneCode() {
        return phoneCode;
    }

    public void setPhoneCode(String phoneCode) {
        this.phoneCode = phoneCode;
    }

    public Users getUser() {
        return user;
    }

    public void setUser(Users user) {
        this.user = user;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public List<String> getPrems() {
        return prems;
    }

    public void setPrems(List<String> prems) {
        this.prems = prems;
    }

    @Override
    public String toString() {
        return "LoginUsers{" +
                "phoneCode='" + phoneCode + '\'' +
                ", user=" + user +
                ", token='" + token + '\'' +
                ", prems=" + prems +
                '}';
    }
}
